<template>
  <el-button type="text" @click="open">点击打开 Message Box</el-button>
</template>

<script>
export default {
  name: 'Login',
  methods: {
    open() {
      this.$alert('这是一段内容', '标题名称', {
        callback: (action) => {
          this.$message({
            type: 'info',
            message: `action: ${action}`
          })
        }
      })
    }
  }
}
</script>

<style lang="less" scoped>
</style>
